-- GENERATED SPELL FOR [Darkfallen Deathblade] --


function spell0_26103(pUnit, Event) --@Death Coil,Heal--
pUnit:FullCastSpellOnTarget(50668,pUnit)
pUnit:RegisterEvent('Sorts_26103', 638, 1)
end

function spell1_26103(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(50349,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26103', 8337, 1)
end

function Sorts_26103(pUnit, Event)
local choix_sorts_26103 = math.random(0, 1)
if choix_sorts_26103 == 0 then
pUnit:RegisterEvent('spell0_26103', 1, 1)
end
if choix_sorts_26103 == 1 then
pUnit:RegisterEvent('spell1_26103', 1, 1)
end
end

function mob26103_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26103', math.random(1500, 3000), 1)
end

function mob26103_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26103_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26103_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26103, 1, 'mob26103_Action')
RegisterUnitEvent(26103, 2, 'mob26103_Leave')
RegisterUnitEvent(26103, 3, 'mob26103_Kill')
RegisterUnitEvent(26103, 4, 'mob26103_Die')
